package com.ruoyi.garbage.service.impl;

import com.ruoyi.garbage.domain.SpeechClassify;
import com.ruoyi.garbage.mapper.SpeechClassifyMapper;
import com.ruoyi.garbage.service.ISpeechClassifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 语音识别记录Service业务层处理
 *
 * @author 刘哲贤
 * @date 2023-01-07
 */
@Service
public class SpeechClassifyServiceImpl implements ISpeechClassifyService {
    @Autowired
    private SpeechClassifyMapper speechClassifyMapper;

    /**
     * 查询语音识别记录
     *
     * @param id 语音识别记录主键
     * @return 语音识别记录
     */
    @Override
    public SpeechClassify selectSpeechClassifyById(Long id) {
        return speechClassifyMapper.selectSpeechClassifyById(id);
    }

    /**
     * 查询语音识别记录列表
     *
     * @param speechClassify 语音识别记录
     * @return 语音识别记录
     */
    @Override
    public List<SpeechClassify> selectSpeechClassifyList(SpeechClassify speechClassify) {
        return speechClassifyMapper.selectSpeechClassifyList(speechClassify);
    }

    /**
     * 新增语音识别记录
     *
     * @param speechClassify 语音识别记录
     * @return 结果
     */
    @Override
    public int insertSpeechClassify(SpeechClassify speechClassify) {
        return speechClassifyMapper.insertSpeechClassify(speechClassify);
    }

    /**
     * 修改语音识别记录
     *
     * @param speechClassify 语音识别记录
     * @return 结果
     */
    @Override
    public int updateSpeechClassify(SpeechClassify speechClassify) {
        return speechClassifyMapper.updateSpeechClassify(speechClassify);
    }

    /**
     * 批量删除语音识别记录
     *
     * @param ids 需要删除的语音识别记录主键
     * @return 结果
     */
    @Override
    public int deleteSpeechClassifyByIds(Long[] ids) {
        return speechClassifyMapper.deleteSpeechClassifyByIds(ids);
    }

    /**
     * 删除语音识别记录信息
     *
     * @param id 语音识别记录主键
     * @return 结果
     */
    @Override
    public int deleteSpeechClassifyById(Long id) {
        return speechClassifyMapper.deleteSpeechClassifyById(id);
    }
}
